<?php

session_cache_expire(999999999);
if (!isset($_SESSION)) {
    session_start();
}
$lang = $_SESSION['lang'];
if ($lang == '')
    $lang = 'EN';
if (!isset($_GET['page'])) {
    $page = 1;
} else {
    $page = $_GET['page'];
}
include 'operations/connection.php';
include("operations/get_lang.php");
$value = getlang();
include($value);
$content = "admin/project/project-detail.php";
if (isset($_REQUEST['content'])) {
    $content = $_REQUEST['content'];
}
$tab = "1";
if (isset($_REQUEST['tab'])) {
    if ($_REQUEST['tab'] == 2) {
        $tab = "2";
    }
}
if (isset($_REQUEST['id'])) {
    $id = $_REQUEST['id'];
}
if (!isset($_SESSION['user'])) {
    header('Location: login.php?timeout=on');
} else {
    $username = $_SESSION['fullname'];
    $id_employee = $_SESSION['IDEmployee'];
}
echo $_SESSION['back'];
$title = $_SESSION['browser'];
if($_SESSION['role']==1){
	require("MainTemplateAdmin.php");
}
if($_SESSION['role']==2){
	require("MainTemplate.php");
}
?>